<?php

function sc_send(  $text , $desp = '' ,$template='' ,$topic='' ){
	$postdata = http_build_query(
    array(
        'title' => $text,
        'content' => $desp,
        'token' => 'fed55e4c2a9d41f2b7ca4dce5b0671bf',
        'template'=> $template,
        'topic'=> $topic
        
    	)
	);
$opts = array('http' =>
    array(
        'method'  => 'POST',
        'header'  => 'Content-type: application/x-www-form-urlencoded',
        'content' => $postdata
    )
);

$context  = stream_context_create($opts);

return $result = file_get_contents('http://www.pushplus.plus/send', false, $context);
}

//sc_send("12312","123123321","html","sys");
?>